package com.kern.rpcclient;

import java.io.IOException;
import java.net.ServerSocket;

/**
 * Created by caoshi at 21:12 2021-07-24
 */
public class RpcServer {

    private static final int CORE_POOL_SIZE = 5;        // 线程池中活跃线程数
    private static final int MAXIMUMPOOL_SIZE = 10;     // 线程池中最大线程数

    // 多余的空闲线程在终止之前等待新任务的最大时间
    private static final int KEEP_ALIVE_TIME = 200;


    // 用于接收客户端连接
    private ServerSocket serverSocket;
    // 连接端口
    private int serverPort;


    public RpcServer(int port) throws IOException {
        this.serverPort = port;
        this.serverSocket = new ServerSocket(this.serverPort);
    }







}
